import { reactive, h } from "vue";

import {
    PieChartOutlined,
    MailOutlined,
    DesktopOutlined,
    AppstoreOutlined,
} from '@ant-design/icons-vue';

/**
 * 菜单数据
 */
export const items = reactive([
    {
        key: '/admin/index',
        icon: () => h(PieChartOutlined),
        label: '首页',
        title: '首页',
    },
    {
        key: '/admin/test',
        icon: () => h(DesktopOutlined),
        label: '测试页面',
        title: '测试页面',
    },
    {
        key: '/admin/test2',
        icon: () => h(DesktopOutlined),
        label: '测试页面2',
        title: '测试页面2',
    },
    
    {
        key: '/admin/test4',
        icon: () => h(DesktopOutlined),
        label: '测试页面4',
        title: '测试页面4',
    },
    {
        key: 'sub1',
        icon: () => h(MailOutlined),
        label: '基础设置',
        title: '基础设置',
        children: [
            {
                key: '/admin/test3',
                icon: () => h(DesktopOutlined),
                label: '测试页面3',
                title: '测试页面3',
            },
            {
                key: '5',
                label: '用户管理',
                title: '用户管理',
            },
            {
                key: '6',
                label: '组织架构',
                title: '组织架构',
            },
            {
                key: '7',
                label: '权限设置',
                title: '权限设置',
            },
            {
                key: '7',
                label: '预警阈值设置',
                title: '预警阈值设置',
            },
        ],
    },
    {
        key: 'sub2',
        icon: () => h(AppstoreOutlined),
        label: '设备管理',
        title: '设备管理',
        children: [
            {
                key: '9',
                label: '台车数据',
                title: '台车数据',
            },
            {
                key: '10',
                label: '传感器数据',
                title: '传感器数据',
            },
        ],
    },
    {
        key: 'sub3',
        icon: () => h(AppstoreOutlined),
        label: '过程监控',
        title: '过程监控',
        children: [
            {
                key: '9',
                label: '泵车监控',
                title: '泵车监控',
            },
            {
                key: '10',
                label: '浇筑监控',
                title: '浇筑监控',
            },
            {
                key: '10',
                label: '振捣监控',
                title: '振捣监控',
            },
            {
                key: '10',
                label: '总工时监控',
                title: '总工时监控',
            },
            {
                key: '10',
                label: '故障监控',
                title: '故障监控',
            },
        ],
    },
]);